<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	System.out.print(path);
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	//System.out.print(basePath);
%>
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>TI - 登录</title>
<link rel="icon" href="images/favicon.ico" type="image/x-icon" />
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/theme.css" rel="stylesheet">
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<link href="assets/css/alertify.css" rel="stylesheet">
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/login.js" type="text/javascript"></script>
<script type="text/javascript">
	var user = "${sessionScope.user.name}";
	if (user != "" && user != null) {
		/* alert("已经登陆!"+user); */
		window.location.href = "login.action";
	}
	if (window != top)
		top.location.href = location.href;
</script>
</head>
<body>
	<div id="wrap">
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="span12">
					<div class="row-fluid">
						<div class="widget container-narrow">
							<div class="widget-header">
								<i class="icon-bookmark"></i>
								<h5>请使用邮箱登录</h5>
							</div>
							<div class="widget-body clearfix" style="padding: 25px;">
								<s:form action="/login.action" name="loginForm">
									<div class="control-group">
										<div class="controls">
											<input class="btn-block" type="text" id="inputEmail"
												name="user.mail" placeholder="邮箱">
											<!-- onblur="return emailCheck('inputEmail')" -->
										</div>
									</div>
									<div class="control-group">
										<div class="controls">
											<input class="btn-block" type="password" id="inputPassword"
												name="user.password" placeholder="密码">
											<!-- onblur="return pwdCheck('inputPassword')" -->
										</div>
									</div>
									<!-- <div class="control-group">
										<div class="controls clearfix">
											<label style="width: auto" class="checkbox pull-left">
												<input type="checkbox"> 记住密码
											</label> <a style="padding: 5px 0px 0px 5px;" href="#"
												class="pull-right">忘记密码?</a>
										</div>
									</div> -->
									<span style="color: red" id="login_msg"><s:property
											value="#session.login_msg" /></span>
									<button class="btn pull-right" id="login_button" type="button">登录</button>
									<!-- onclick="checkSubmit();" -->
								</s:form>
							</div>
						</div>
						<div style="text-align: center">
							<p>
								<a href="user/new_account.jsp">创建账户</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
									href="user/pwdUpdate.jsp">忘记密码?</a>
							</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<script type="text/javascript">
	document.getElementById("inputEmail").focus();
</script>
</html>
